Optimal. Leaf size=54 \[ \frac {i a \sec ^3(c+d x)}{3 d}+\frac {a \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac {a \tan (c+d x) \sec (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {3486, 3768, 3770} \[ \frac {i a \sec ^3(c+d x)}{3 d}+\frac {a \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac {a \tan (c+d x) \sec (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3486
Rule 3768
Rule 3770
Rubi steps
\begin {align*} \int \sec ^3(c+d x) (a+i a \tan (c+d x)) \, dx &=\frac {i a \sec ^3(c+d x)}{3 d}+a \int \sec ^3(c+d x) \, dx\\ &=\frac {i a \sec ^3(c+d x)}{3 d}+\frac {a \sec (c+d x) \tan (c+d x)}{2 d}+\frac {1}{2} a \int \sec (c+d x) \, dx\\ &=\frac {a \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac {i a \sec ^3(c+d x)}{3 d}+\frac {a \sec (c+d x) \tan (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 54, normalized size = 1.00 \[ \frac {i a \sec ^3(c+d x)}{3 d}+\frac {a \tanh ^{-1}(\sin (c+d x))}{2 d}+\frac {a \tan (c+d x) \sec (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.59, size = 180, normalized size = 3.33 \[ \frac {-6 i \, a e^{\left (5 i \, d x + 5 i \, c\right )} + 16 i \, a e^{\left (3 i \, d x + 3 i \, c\right )} + 6 i \, a e^{\left (i \, d x + i \, c\right )} + 3 \, {\left (a e^{\left (6 i \, d x + 6 i \, c\right )} + 3 \, a e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, a e^{\left (2 i \, d x + 2 i \, c\right )} + a\right )} \log \left (e^{\left (i \, d x + i \, c\right )} + i\right ) - 3 \, {\left (a e^{\left (6 i \, d x + 6 i \, c\right )} + 3 \, a e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, a e^{\left (2 i \, d x + 2 i \, c\right )} + a\right )} \log \left (e^{\left (i \, d x + i \, c\right )} - i\right )}{6 \, {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} + 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.42, size = 97, normalized size = 1.80 \[ \frac {3 \, a \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - 3 \, a \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right ) + \frac {2 \, {\left (3 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 6 i \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 3 \, a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 i \, a\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{3}}}{6 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.42, size = 55, normalized size = 1.02 \[ \frac {i a}{3 d \cos \left (d x +c \right )^{3}}+\frac {a \sec \left (d x +c \right ) \tan \left (d x +c \right )}{2 d}+\frac {a \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 61, normalized size = 1.13 \[ -\frac {3 \, a {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - \frac {4 i \, a}{\cos \left (d x + c\right )^{3}}}{12 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.13, size = 107, normalized size = 1.98 \[ \frac {a\,\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{d}-\frac {-a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+2{}\mathrm {i}\,a\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+a\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+\frac {a\,2{}\mathrm {i}}{3}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ i a \left (\int \left (- i \sec ^{3}{\left (c + d x \right )}\right )\, dx + \int \tan {\left (c + d x \right )} \sec ^{3}{\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________